#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>

int main() {
    int k = 0;
    scanf("%d", &k);
    int n = 0, m = 0;
    for (int i = 1; i <= k; i++)
    {
        if (i % 2 == 0)
        {
            n++;
        }
        else {
            m++;
        }
    }
    printf("%d %d", m, n);
    return 0;
}